<template>
  <div id="aCoursesList" class="bg-fa of">
    <div v-for="item in items" :key="item.id">
      <a href="">{{ item.name }}</a>
    </div>
  </div>

</template>

<script>
import teacherApi from '~/api/teacher'

export default {

  async asyncData() {
    const response = await teacherApi.getList()
    // const response1 = teacherApi.getList1()
    return {
      items: response.data.items
    //   items1: response1.data.items
    }
  },

  data() {
    return {
      items1: []
    }
  }

  // created() {
  //   teacherApi.getList().then(response => {
  //     this.items1 = response.data.items
  //   })
  // }
}
</script>
